package Library.Game;

/**
 * Deze klasse zet GameStates om in text en bevat alle mogelijke gamestate-waardes.
 */
public class GameState
{
    /**
     * Vraag de naam die bij de GameState hoort op.
     * @param state gamestate
     * @return naam
     */
    public static String getName(int state)
    {
        switch (state)
        {
            case GAME_WAITINGFORPLAYERS:
                return "Waiting For Players";
	    //case GAME_WAITING_FOR_PLAYERS_LOADING:
		//return "Waiting For Other Players..";
            case GAME_PREPARING:
                return "Preparing";
            case GAME_PLAYING:
                return "Playing";
            case GAME_WAITINGFOREXIT:
                return "Waiting For Exit";
            case GAME_STOPPED:
                return "Stopped";
            case GAME_SETUP:
                return "Setup";
            default:
                return "Unknown";
        }
    }
    
    /**
     *
     */
    public static final int GAME_WAITINGFORPLAYERS = 0;
    //public static final int GAME_WAITING_FOR_PLAYERS_LOADING = 7;
    /**
     *
     */
    public static final int GAME_PREPARING = 1;
    /**
     *
     */
    public static final int GAME_SETUP = 2;
    /**
     *
     */
    public static final int GAME_PLAYING = 3;
    /**
     *
     */
    public static final int GAME_WAITINGFOREXIT = 4;
    /**
     *
     */
    public static final int GAME_STOPPED = 5;
}
